//输入三个数，按照从小到大的顺序输出这三个数。
public class Task {
    public static void main(String[] args) {
        System.out.println("输入三个数：");
        Scanner input=new Scanner(System.in);
        int num1=input.nextInt();
        int num2=input.nextInt();
        int num3=input.nextInt();
        int temp=0;
        if (num1<=num2&&num1<=num3){
            if (num2<=num3){
                System.out.println(num1+"\t"+num2+"\t"+num3);
            }else {
                System.out.println(num1+"\t"+num3+"\t"+num2);
            }
        }else if (num2<=num1&&num2<=num3) {
            if (num1 <= num3) {
                System.out.println(num2+"\t"+num1+"\t"+num3);
            } else {
                System.out.println(num2+"\t"+num3+"\t"+num1);
            }
        }else if (num3<=num1&&num3<=num2) {
            if (num1 <= num2) {
                System.out.println(num3+"\t"+num1+"\t"+num2);
            } else {
                System.out.println(num3+"\t"+num2+"\t"+num1);
            }
        }else {
            System.out.println("error");
        }
    }
}